
package jpoco.client;

@SuppressWarnings("serial")
public class NetworkPresence
	implements java.io.Serializable
{
	public static final String ONLINE = "online";
	public static final String OFFLINE = "offline";
	
	private String value;
	private String key;
	
	public NetworkPresence()
	{
	}

	public String getValue()
	{
		return value;
	}

	public void setValue(String v)
	{
		this.value = v;
	}
	
	public boolean isOnline()
	{
		return ONLINE.equalsIgnoreCase(this.value);
	}

	public boolean isOffline()
	{
		return OFFLINE.equalsIgnoreCase(this.value);
	}
	
	public String toString()
	{
		return String.valueOf(this.getValue());
	}

	public String getKey()
	{
		return key;
	}

	public void setKey(String k)
	{
		this.key = k;
	}
	
	
}
